<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1,minimum-scale=1, user-scalable=no">
		<title>解构赋值</title>
		<script type="text/javascript">
			function add({a = 10, b = 1, c = 2}){
				console.log(a + b + c)
			}
			//60，没a属性时，使用函数的默认值10
			add({b:20,c:30})
		</script>
	</head>
	<body>
		
	</body>
</html>

